﻿using System.Collections.ObjectModel;
using System.ComponentModel.Composition;

using Warehouse.Silverlight.Modules.Main.Models;

namespace Warehouse.Silverlight.Modules.Main.Services
{
    [Export(typeof(INavTreeService))]
    public class NavTreeService_DesignTime : INavTreeService
    {
        public ObservableCollection<NavTreeItem> GetAllItems()
        {
            var items = new ObservableCollection<NavTreeItem>();

            items.Add(new NavTreeItem("Home", "Home"));
            items.Add(new NavTreeItem("About", "About"));

            items.Add(new NavTreeItem("Product", "Product"));

            items.Add(new NavTreeItem("Test", "")
            {
                Items = NavTreeItem.SubItems
                (
                    new NavTreeItem("TestList", "TestList"),
                    new NavTreeItem("Page1", "/Page1")
                )
            });

            items.Add(new NavTreeItem("Organization", "")
            {
                Items = NavTreeItem.SubItems
                (
                    new NavTreeItem("Company", "Company"),
                    new NavTreeItem("Department", "Department"),
                    new NavTreeItem("Employee", "Employee")
                )
            });

            items.Add(new NavTreeItem("Production", "")
            {
                Items = NavTreeItem.SubItems
                (
                    new NavTreeItem("Category", "Category"),
                    new NavTreeItem("Product", "Product")
                    {
                        Items = NavTreeItem.SubItems
                        (
                            new NavTreeItem("Product01", "Product01")
                        )
                    }
                )
            });

            return items;
        }
    }
}
